﻿using Assets.BattleSystem.EnemyConfigs;
using System;
using System.Collections.Generic;
using System.Text;

namespace _2DGame_Preview_Server.Services.RoomAndBattle.RoomHall.Model
{
    public class RoomInfo
    {
        public int RoomId;
        public string CaseName;
        public int maxCap;
        public int nowCap;
        public int port;
        public string state;
        public CaseSpawnConfig caseConfig;

        public RoomInfo()
        {
        }
        
        public RoomInfo(int id,string caseName, int maxCap, CaseSpawnConfig caseConfig)
        {
            RoomId = id;
            CaseName = caseName;
            this.maxCap = maxCap;
            this.caseConfig = caseConfig;
            nowCap = 0;
            state = "wait";
        }

        public override string ToString()
        {
            return $"{nameof(RoomId)}: {RoomId}, {nameof(CaseName)}: {CaseName}, {nameof(maxCap)}: {maxCap}, {nameof(nowCap)}: {nowCap}, {nameof(port)}: {port}, {nameof(state)}: {state}, {nameof(caseConfig)}: {caseConfig}";
        }
    }
}
